package com.lianniu.web.operationMessage.service.impl;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.operationMessage.dao.OperMessageDao;
import com.lianniu.web.operationMessage.service.OperMessageService;
import com.lianniu.web.operationMessage.vo.OperMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017-05-31.
 */
@Service
public class OperMessageImpl implements OperMessageService {
    @Autowired
    OperMessageDao operMessageDao;

    @Override
    public BaseResult insertSelective(OperMessage record) {
        return BaseResult.success(operMessageDao.insertSelective(record));
    }

    @Override
    public BaseResult selectByPrimaryKey(Long id) {
        return BaseResult.success(operMessageDao.selectByPrimaryKey(id));
    }

    @Override
    public BaseResult updateByPrimaryKeySelective(OperMessage record) {
        return BaseResult.success(operMessageDao.updateByPrimaryKeySelective(record));
    }
}
